﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="filters.aspx.cs" Inherits="r_face_filters" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<style>
    *
    {
        margin: 0px;
        padding: 0px;
        font-family: Calibri,Verdana,Tahoma;
        font-size: 10pt;
    }
    select
    {
        width: 80%;
    }
    input[type='text']
    {
        width: 80%;
    }    
    div
    {
        margin-left: 15px;
        margin-top: 10px;
    }
    table
    {
        width: 100%;
        border-collapse: collapse;
    }
    th, td
    {
        text-align: left;
        border-bottom: 1px solid #ccc;
    }
    a
    {
        margin-right: 15px;
        text-decoration: none;
        color: Blue;
    }
    a:hover
    {
        text-decoration: underline;
    }
</style>
<script>
    function addFilter()
    {
        document.getElementById("AddFilter").value = "1";
        document.forms[0].submit();
    }
    function removeFilter(filterName)
    {
        document.getElementById('FilterToRemove').value = filterName;
        document.forms[0].submit();
    }
    function hideSelf()
    {
        parent.window.document.getElementById('modalBackground').style.display =
        parent.window.document.getElementById('modalWindow').style.display = "none";
    }
</script>
<body>
    <div style="color:Red;font-size:12pt;border:1px solid maroon;background-color:#ffe0e0;width:92%;padding-left:10px;"><asp:Literal id="WarningMessage" runat="server"></asp:Literal></div>
    <form id="form1" runat="server" method="post">
    <div>
        <div>
            Filtre</div>
        <div>
            <select runat="server" id="Filters" onchange="javascript:document.forms[0].submit();">
                <option value="">Lütfen seçiniz..</option>
            </select>
        </div>
    </div>
    <div>
        <div>
            Filtre Değeri</div>
        <div>
            <select runat="server" id="FilterValueList">
            </select>
        </div>
        <div>
            Benzer Kayıtları Arama: <input type="text" id="FilterValue" name="FilterValue" runat="server" />
        </div>
    </div>
    <div>
        <div>
            <input type="hidden" id="AddFilter" name="AddFilter" />
            <a href="javascript:void" onclick="javascript:addFilter();">Ekle</a>
        </div>
    </div>
    <div>
        <div>
            Mevcut Filtreler</div>
        <div>
            <input type="hidden" id="FilterToRemove" name="filterToRemove" />
            <table>
                <thead>
                    <tr>
                        <th>
                            Filtre Adı
                        </th>
                        <th>
                            Filtre Değeri
                        </th>
                        <th>
                            Kaldır
                        </th>
                    </tr>
                </thead>
                <asp:Literal ID="AppliedFilters" runat="server" />
            </table>
        </div>
    </div>
    <div>
        <div style="float: right;">
            <a href="javascript:void" onclick="javascript:parent.window.document.forms[0].submit();">
                Tamam</a>
        </div>
    </div>
    </form>
</body>
</html>
